package com.tianlh.service.impl;

import com.tianlh.dao.BookDao;
import com.tianlh.entity.Book;
import com.tianlh.service.BookService;
import com.tianlh.service.aspect.AspectPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author wb-tianlihui
 * @date 2017/11/7
 */
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookDao dao;

    @Override
    @AspectPoint(name="heizi")
    public Book getBookById(Long id) {
        Book book = dao.queryById(id);
        return book;
    }

}
